package com.eshop.modules.category.service;

import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import com.eshop.modules.category.service.dto.StoreCategoryDto;
import java.util.Map;
import org.springframework.data.domain.Pageable;
import com.eshop.modules.category.service.dto.StoreCategoryQueryCriteria;
import com.eshop.utils.CateDTO;
import java.util.List;
import com.eshop.modules.category.domain.StoreCategory;
import com.eshop.common.service.BaseService;

public interface StoreCategoryService extends BaseService<StoreCategory>
{
    List<CateDTO> getList();
    
    Map<String, Object> queryAll(final StoreCategoryQueryCriteria criteria, final Pageable pageable);
    
    List<StoreCategoryDto> queryAll(final StoreCategoryQueryCriteria criteria);
    
    void download(final List<StoreCategoryDto> all, final HttpServletResponse response) throws IOException;
    
    Map<String, Object> buildTree(final List<StoreCategoryDto> categoryDTOS);
    
    boolean checkCategory(final int pid);
    
    boolean checkProductCategory(final int id);
}
